package com.jiumi.baseconfig.domain;

import java.math.BigDecimal;
import java.util.List;

import com.jiumi.common.annotation.Excel;
import com.jiumi.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
/**
 * 课程信息对象 base_course_info
 *
 * @author jiumi
 * @date 2023-05-21
 */
@Data
public class BaseCourseInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 课程名称 */
    @Excel(name = "课程名称")
    private String courseName;

    /** 封面图 */
    @Excel(name = "封面图")
    private String coverImage;

    /** 讲师 */
    @Excel(name = "讲师")
    private Long teacherId;

    /** 讲师姓名 */
    @Excel(name = "讲师姓名")
    private String teacherName;

    /** 课程分类 */
    @Excel(name = "课程分类")
    private String courseType;

    /** 课程分类ID */
    @Excel(name = "课程分类ID")
    private Long courseTypeId;

    /** 课程介绍 */
    @Excel(name = "课程介绍")
    private String intro;

    /** 价格 */
    @Excel(name = "价格")
    private BigDecimal price;

    /** 开课时间 */
    @Excel(name = "开课时间")
    private String startTime;

    /** 是否首页推荐 */
    @Excel(name = "是否首页推荐")
    private String showIndex;

    private String userBuyFlag;
    private String teacherPhone;

    private String openFlag;

    private Integer chapterNum;

    private String showFlag;

    private Long[] ids;
    public Integer getChapterNum() {
        return chapterNum;
    }

    public void setChapterNum(Integer chapterNum) {
        this.chapterNum = chapterNum;
    }

    public String getTeacherPhone() {
        return teacherPhone;
    }

    public void setTeacherPhone(String teacherPhone) {
        this.teacherPhone = teacherPhone;
    }

    public String getOpenFlag() {
        return openFlag;
    }

    public void setOpenFlag(String openFlag) {
        this.openFlag = openFlag;
    }

    public String getUserBuyFlag() {
        return userBuyFlag;
    }

    public void setUserBuyFlag(String userBuyFlag) {
        this.userBuyFlag = userBuyFlag;
    }

    private List<BaseChapter> chapterList;
    private List<BaseCourseInfo> relaCourseList;

    public List<BaseCourseInfo> getRelaCourseList() {
        return relaCourseList;
    }

    public void setRelaCourseList(List<BaseCourseInfo> relaCourseList) {
        this.relaCourseList = relaCourseList;
    }

    public List<BaseChapter> getChapterList() {
        return chapterList;
    }

    public void setChapterList(List<BaseChapter> chapterList) {
        this.chapterList = chapterList;
    }

    public Long getMealId() {
        return mealId;
    }

    public void setMealId(Long mealId) {
        this.mealId = mealId;
    }

    private Long mealId;
    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setCourseName(String courseName)
    {
        this.courseName = courseName;
    }

    public String getCourseName()
    {
        return courseName;
    }
    public void setCoverImage(String coverImage)
    {
        this.coverImage = coverImage;
    }

    public String getCoverImage()
    {
        return coverImage;
    }
    public void setTeacherId(Long teacherId)
    {
        this.teacherId = teacherId;
    }

    public Long getTeacherId()
    {
        return teacherId;
    }
    public void setTeacherName(String teacherName)
    {
        this.teacherName = teacherName;
    }

    public String getTeacherName()
    {
        return teacherName;
    }
    public void setCourseType(String courseType)
    {
        this.courseType = courseType;
    }

    public String getCourseType()
    {
        return courseType;
    }
    public void setCourseTypeId(Long courseTypeId)
    {
        this.courseTypeId = courseTypeId;
    }

    public Long getCourseTypeId()
    {
        return courseTypeId;
    }
    public void setIntro(String intro)
    {
        this.intro = intro;
    }

    public String getIntro()
    {
        return intro;
    }
    public void setPrice(BigDecimal price)
    {
        this.price = price;
    }

    public BigDecimal getPrice()
    {
        return price;
    }
    public void setStartTime(String startTime)
    {
        this.startTime = startTime;
    }

    public String getStartTime()
    {
        return startTime;
    }
    public void setShowIndex(String showIndex)
    {
        this.showIndex = showIndex;
    }

    public String getShowIndex()
    {
        return showIndex;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("courseName", getCourseName())
            .append("coverImage", getCoverImage())
            .append("teacherId", getTeacherId())
            .append("teacherName", getTeacherName())
            .append("courseType", getCourseType())
            .append("courseTypeId", getCourseTypeId())
            .append("intro", getIntro())
            .append("price", getPrice())
            .append("startTime", getStartTime())
            .append("showIndex", getShowIndex())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
